<html>
<head><meta charset="utf-8"><title>long-diagnostics · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/long-diagnostics.html">long-diagnostics</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="229967894"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/long-diagnostics/near/229967894" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sunjay Varma <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/long-diagnostics.html#229967894">(Mar 12 2021 at 03:05)</a>:</h4>
<p>If I have a long diagnostic message that I want to pass to <code>note</code>, is there a way to get it to automatically word wrap? What do we usually do when parts of diagnostics are long? Should I just manually break the string up into multiple lines?</p>



<a name="229968973"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/long-diagnostics/near/229968973" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sunjay Varma <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/long-diagnostics.html#229968973">(Mar 12 2021 at 03:18)</a>:</h4>
<p>Hmm okay it looks like if I just use <code>\n</code> in my string it figures it out automatically? Is that right?</p>



<a name="230285537"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/long-diagnostics/near/230285537" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/long-diagnostics.html#230285537">(Mar 15 2021 at 01:51)</a>:</h4>
<p>I would say just try <code>\n</code> and see if it works :)</p>
<p>You can add a comment in your PR so your reviewer can check it.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>